package com.sailing.lianxi.design.prototype;

public abstract class Shape implements Cloneable {

	private String id;
	
	protected String type;
	
	abstract void draw();

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public Object clone(){
		Object cloneObj = null;
		try {
			cloneObj = super.clone();
		} catch (CloneNotSupportedException e) {
			System.out.println(" clone obj failed");
			e.printStackTrace();
		}
		return cloneObj;
	}
	
	
}
